#include "iChessBoard.h"
#include "global.h"
class ChessBoard : public IChessBoard{
    public:
         ~ChessBoard();
         ChessBoard();
         void resize(int width, int height);
         void init();
         void addChess(Chess chess);
         int getWhiteScore();
         int getBlackScore();
         int getWidth();
         int getHeight();
         bool isOutranged(int row, int column);
         bool isRepeat(int row, int column);
         ChessColor chessColor(int row, int column);
         bool isWinner(Chess chess);
        //与当前棋子连珠的棋子个数, 即连续同色
         int searchChess(Chess chess, Direction direction);
     private:
         int width;
         int height;
         int blackScore;
         int whiteScore;
         ChessBoardMap chessBoardMap; 
         

};

